package com.kly.user.db.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.kly.user.db.dao.IssueUserBackConfigDao;
import com.kly.user.db.entity.IssueUserBackConfigEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
* User: user
* Date: 2023-11-23
* Time: 17:28:45.529
*/

@Repository
public class IssueUserBackConfigDaoImpl extends AbstractBaseMapper<IssueUserBackConfigEntity> implements IssueUserBackConfigDao {

    @Override
    public List<IssueUserBackConfigEntity> getCurrentDayConfig(int weekDay) {
        Map<String, Object> selectUsersParams = new HashMap<>();
        selectUsersParams.put("weekDay", weekDay);
        return this.getSqlSession().selectList(this.getStatement("getCurrentDayConfig"), selectUsersParams);
    }
}